package com.huawang.mdesign.model.service.request;

import com.huawang.business.constants.ParamErrorConstants;
import com.huawang.mdesign.model.service.dto.QueryPropertyValueDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import com.huawang.business.dto.ProjectIdDTO;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.List;

@Schema(description = "多个模型属性值")
@Data
public class QueryMultiPropertyValueDTO extends ProjectIdDTO {
    @Schema(title = "项目id")
    @NotBlank(message = ParamErrorConstants.NO_PROJECT_ID)
    private String projectId;

    @Schema(title = "需要查询的模型的列表")
    @NotEmpty(message = ParamErrorConstants.NO_INSTANCES)
    private List<QueryPropertyValueDTO> instances;
}
